package com.easemob.cases.db;

import com.hyphenate.easeui.domain.EaseUser;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by King on 2016/8/8 0008.
 */
@Table(name = "messageuser")
public class MessageUserTable {

    public static final String COLUMN_NAME_ID = "username";
    @Column(name = "username",isId = true)
    private String userName;
    public static final String COLUMN_NAME_NICK = "nick";
    @Column(name = "nick")
    private String nick;
    public static final String COLUMN_NAME_AVATAR = "avatar";
    @Column(name = "avatar")
    private String avatar;
    public static final String COLUMN_NAME_PHONE = "phone";
    @Column(name = "phone")
    private String phone;
    @Column(name = "employeeId")
    private String employeeId;
    @Column(name = "userType")
    private int userType = 2 ;


    public MessageUserTable() {

    }
    public MessageUserTable(EaseUser easeUser) {
        this.userName = easeUser.getUsername();
        this.nick = easeUser.getNickname();
        this.avatar = easeUser.getAvatar();
        this.phone = easeUser.getPhone();
        this.employeeId = easeUser.getEmployeeId();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "MessageUserTable{" +
                "userName='" + userName + '\'' +
                ", nick='" + nick + '\'' +
                ", avatar='" + avatar + '\'' +
                ", phone='" + phone + '\'' +
                ", employeeId='" + employeeId + '\'' +
                '}';
    }
}
